package com.tanhua.dubbo.api;

import com.tanhua.model.mongo.Voice;
import org.apache.dubbo.config.annotation.DubboReference;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;

/**
 * Created by IntelliJ IDEA.
 * User: 许志民
 * Date: 2022-01-09
 */
@DubboService
public class VoiceApiImpl implements VoiceApi{
    @Autowired
    private MongoTemplate mongoTemplate;

    @Override
    public void save(Voice voice) {
        mongoTemplate.save(voice);
    }
}
